package com.huifaapp.mall.bean;

import java.util.List;

/**
 * Created by Administrator on 2018/2/1.
 */

public class RedBean {

    /**
     * msg : 请求成功！
     * code : 10000
     * data : {"isOpen":"1","couponBg":"https://uhuijia-1254600872.cos.ap-beijing.myqcloud.com/22e37f21-a38d-4d8f-bc52-596c3f023e1d.png","list":[{"price":11,"name":"满减","id":"10001","useCond":11},{"price":20,"name":"满减","id":"100001","useCond":0},{"price":23,"name":"满减","id":"100003","useCond":0}]}
     */

    private String msg;
    private String code;
    private DataBean data;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * isOpen : 1
         * couponBg : https://uhuijia-1254600872.cos.ap-beijing.myqcloud.com/22e37f21-a38d-4d8f-bc52-596c3f023e1d.png
         * list : [{"price":11,"name":"满减","id":"10001","useCond":11},{"price":20,"name":"满减","id":"100001","useCond":0},{"price":23,"name":"满减","id":"100003","useCond":0}]
         */

        private String isOpen;
        private String couponBg;
        private List<ListBean> list;

        public String getIsOpen() {
            return isOpen;
        }

        public void setIsOpen(String isOpen) {
            this.isOpen = isOpen;
        }

        public String getCouponBg() {
            return couponBg;
        }

        public void setCouponBg(String couponBg) {
            this.couponBg = couponBg;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean {
            /**
             * price : 11.0
             * name : 满减
             * id : 10001
             * useCond : 11.0
             */

            private double price;
            private String name;
            private String id;
            private double useCond;

            public double getPrice() {
                return price;
            }

            public void setPrice(double price) {
                this.price = price;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public double getUseCond() {
                return useCond;
            }

            public void setUseCond(double useCond) {
                this.useCond = useCond;
            }
        }
    }
}
